<%--
  Created by IntelliJ IDEA.
  User: 18098
  Date: 2025/3/1
  Time: 10:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <%--这里是前端的样式--%>
    <title>用户注册</title>
    <style>
        body { font-family: Arial, sans-serif; background: #f4f4f4; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; }
        .register-box { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0,0,0,0.1); width: 300px; }
        .register-box h2 { text-align: center; color: #333; margin-bottom: 20px; }
        .register-box input { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }
        .register-box button { width: 100%; padding: 10px; background: #28a745; color: white; border: none; border-radius: 4px; cursor: pointer; }
        .register-box button:hover { background: #218838; }
    </style>
</head>
<body>
<div class="register-box">
    <h2>用户注册</h2>
    <form action="register" method="post">
        <input type="text" name="username" placeholder="用户名" required>
        <input type="password" name="password" placeholder="密码" required>
        <button type="submit">提交</button>
    </form>
</div>
</body>
</html>
